package zzxkj.blog.service;

import com.github.pagehelper.PageInfo;
import zzxkj.blog.dto.FirstPageBlog;
import zzxkj.blog.search.mq.entity.EsMessage;

import java.util.List;

public interface SearchService {
    PageInfo search(PageInfo page, String keyword);

    long initEsData(List<FirstPageBlog> blogs);

    void createOrUpdateIndex(EsMessage message);

    void removeIndex(EsMessage message);
}
